<script type="text/javascript">
    $(function() {
        $("#tabs").tabs();
    });

</script>

<div id="body">

  <p>Hello, <%= @user.name %> </p>

  <div id="tabs">
    <ul>
      <li><a href="#tabs-1">厨房</a></li>
    </ul>
    <div id="tabs-1">
      <p>这里显示我的厨房的菜：</p>
      <div class="div_inline">
        <% @stoves.each_with_index do |dish, idx|  %>
          <% if dish -%>
          <% dish_img = "<img src='/images/dishes/#{dish.base_dish.id}.gif'/> " -%>
            <dl class="stove">
              <dt><%=dish_img %></dt>
              <dd>偷吃/上架/剩余时间 </dd>
            </dl>
          <% else %>
            <dl class="stove">
              <dt><img src="/images/stove_blank.gif"/></dt>
              <dd><%=link_to '我要做菜', make_step_1_path(idx) %></dd>
            </dl>
          <% end  # of if %>
        <% end # of for %>
      </div>
      <div class="clear"></div>
    </div>
  </div>
</div>